**** dT 0.000 * top TEST ../../../../bin/varnishtest/tests/b00026.vtc starting **** top extmacro def pkg_version=trunk **** top extmacro def pkg_branch=trunk **** top extmacro def pwd=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest **** top extmacro def date(...) **** top extmacro def string(...) **** top extmacro def localhost=127.0.0.1 **** top extmacro def bad_backend=127.0.0.1:45271 **** top extmacro def listen_addr=127.0.0.1:0 **** top extmacro def bad_ip=192.0.2.255 **** top extmacro def topbuild=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub **** top extmacro def topsrc=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/../.. **** top macro def testdir=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest/../../../../bin/varnishtest/tests **** top macro def tmpdir=/home/linux1/VT/_vtest_tmp/vtc.3806505.5f0d8a84 **** top macro def vtcid=vtc.3806505.5f0d8a84 ** top === varnishtest "Check the precedence for timeouts" * top VTEST Check the precedence for timeouts ** top === server s1 { ** s1 Starting server **** s1 macro def s1_addr=127.0.0.1 **** s1 macro def s1_port=41599 **** s1 macro def s1_sock=127.0.0.1:41599 * s1 Listen on 127.0.0.1:41599 ** top === server s2 { ** s2 Starting server **** s2 macro def s2_addr=127.0.0.1 **** s2 macro def s2_port=43633 **** s2 macro def s2_sock=127.0.0.1:43633 * s2 Listen on 127.0.0.1:43633 ** top === varnish v1 -vcl { **** dT 0.004 ** s1 Started on 127.0.0.1:41599 (1 iterations) **** dT 0.006 ** s2 Started on 127.0.0.1:43633 (1 iterations) **** dT 0.014 ** v1 Launch *** v1 CMD: cd ${pwd} && exec varnishd -d -n /home/linux1/VT/_vtest_tmp/vtc.3806505.5f0d8a84/v1 -i v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p thread_pool_min=10 -p debug=+vtc_mode -p vsl_mask=+Debug,+H2RxHdr,+H2RxBody -p h2_initial_window_size=1m -p h2_rx_window_low_water=64k -a '127.0.0.1:0' -M '127.0.0.1 39717' -P /home/linux1/VT/_vtest_tmp/vtc.3806505.5f0d8a84/v1/varnishd.pid -p vmod_path=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/vmod/.libs *** v1 CMD: cd /home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/bin/varnishtest && exec varnishd -d -n /home/linux1/VT/_vtest_tmp/vtc.3806505.5f0d8a84/v1 -i v1 -l 2m -p auto_restart=off -p syslog_cli_traffic=off -p thread_pool_min=10 -p debug=+vtc_mode -p vsl_mask=+Debug,+H2RxHdr,+H2RxBody -p h2_initial_window_size=1m -p h2_rx_window_low_water=64k -a '127.0.0.1:0' -M '127.0.0.1 39717' -P /home/linux1/VT/_vtest_tmp/vtc.3806505.5f0d8a84/v1/varnishd.pid -p vmod_path=/home/linux1/VT/varnish-cache/varnish-trunk/_build/sub/vmod/.libs *** v1 PID: 3806525 **** v1 macro def v1_pid=3806525 **** v1 macro def v1_name=/home/linux1/VT/_vtest_tmp/vtc.3806505.5f0d8a84/v1 **** dT 0.026 *** v1 debug|Info: Working directory not mounted on tmpfs partition **** dT 0.043 *** v1 debug|Debug: Version: varnish-trunk revision f7b6e247ef43de3a9c15aa6ae0c129a7e4b673fe *** v1 debug|Debug: Platform: Linux,4.18.0-553.16.1.el8_10.s390x,s390x,-jlinux,-sdefault,-sdefault,-hcritbit *** v1 debug|200 329 *** v1 debug|----------------------------- *** v1 debug|Varnish Cache CLI 1.0 *** v1 debug|----------------------------- *** v1 debug|Linux,4.18.0-553.16.1.el8_10.s390x,s390x,-jlinux,-sdefault,-sdefault,-hcritbit *** v1 debug|varnish-trunk revision f7b6e247ef43de3a9c15aa6ae0c129a7e4b673fe *** v1 debug| *** v1 debug|Type 'help' for command list. *** v1 debug|Type 'quit' to close CLI session. *** v1 debug|Type 'start' to launch worker process. *** v1 debug| **** dT 0.146 **** v1 CLIPOLL 1 0x1 0x0 0x0 *** v1 CLI connection fd = 9 *** v1 CLI RX 107 **** v1 CLI RX|oveaqwbawsblrsgzdxemxcottlkdcgih **** v1 CLI RX| **** v1 CLI RX|Authentication required. **** v1 CLI TX|auth dae6dfa779c54eecde0e8b073b7e5f37572588fc48637827114654a4d27b1bad **** dT 0.153 *** v1 CLI RX 200 **** v1 CLI RX|----------------------------- **** v1 CLI RX|Varnish Cache CLI 1.0 **** v1 CLI RX|----------------------------- **** v1 CLI RX|Linux,4.18.0-553.16.1.el8_10.s390x,s390x,-jlinux,-sdefault,-sdefault,-hcritbit **** v1 CLI RX|varnish-trunk revision f7b6e247ef43de3a9c15aa6ae0c129a7e4b673fe **** v1 CLI RX| **** v1 CLI RX|Type 'help' for command list. **** v1 CLI RX|Type 'quit' to close CLI session. **** v1 CLI RX|Type 'start' to launch worker process. **** v1 CLI TX|vcl.inline vcl1 << %XJEIFLH|)Xspa8P **** v1 CLI TX|vcl 4.1; **** v1 CLI TX| **** v1 CLI TX|\tbackend b1 { **** v1 CLI TX|\t\t.host = "127.0.0.1"; **** v1 CLI TX|\t\t.port = "41599"; **** v1 CLI TX|\t\t.first_byte_timeout = 2s; **** v1 CLI TX|\t} **** v1 CLI TX|\tbackend b2 { **** v1 CLI TX|\t\t.host = "127.0.0.1"; **** v1 CLI TX|\t\t.port = "43633"; **** v1 CLI TX|\t\t.first_byte_timeout = 1s; **** v1 CLI TX|\t} **** v1 CLI TX| **** v1 CLI TX|\tsub vcl_recv { **** v1 CLI TX|\t\tif (req.url == "from_backend") { **** v1 CLI TX|\t\t\treturn(pass); **** v1 CLI TX|\t\t} **** v1 CLI TX|\t} **** v1 CLI TX|\tsub vcl_backend_fetch { **** v1 CLI TX|\t\tset bereq.first_byte_timeout = 2s; **** v1 CLI TX|\t\tif (bereq.url == "from_backend") { **** v1 CLI TX|\t\t\tset bereq.backend = b1; **** v1 CLI TX|\t\t} else { **** v1 CLI TX|\t\t\tset bereq.backend = b2; **** v1 CLI TX|\t\t} **** v1 CLI TX|\t} **** v1 CLI TX| **** v1 CLI TX|%XJEIFLH|)Xspa8P **** dT 0.255 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.358 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.463 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.568 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.668 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.770 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.870 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 0.973 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.074 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.176 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.277 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.380 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.481 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.586 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.687 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.788 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.888 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 1.989 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 2.089 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 2.191 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 2.283 *** v1 CLI RX 200 **** v1 CLI RX|VCL compiled. **** v1 CLI TX|vcl.use vcl1 *** v1 CLI RX 200 **** v1 CLI RX|VCL 'vcl1' now active ** v1 Start **** v1 CLI TX|start **** dT 2.296 *** v1 vsl|No VSL chunk found (child not started ?) **** dT 2.347 *** v1 debug|Debug: Child (3806538) Started **** dT 2.421 *** v1 debug|Child launched OK **** dT 2.441 *** v1 debug|Info: Child (3806538) said Child starts **** dT 2.442 *** v1 CLI RX 200 *** v1 wait-running **** v1 CLI TX|status **** dT 2.447 *** v1 CLI RX 200 **** v1 CLI RX|Child in state running **** v1 CLI TX|debug.listen_address **** dT 2.496 **** v1 vsl| 0 CLI - Rd vcl.load "vcl1" vcl_vcl1.1732667879.323184/vgc.so 1auto **** v1 vsl| 0 CLI - Wr 200 52 Loaded "vcl_vcl1.1732667879.323184/vgc.so" as "vcl1" **** v1 vsl| 0 CLI - Rd vcl.use "vcl1" **** v1 vsl| 0 CLI - Wr 200 0 **** v1 vsl| 0 CLI - Rd start **** v1 vsl| 0 Debug - sockopt: Setting SO_LINGER for a0=127.0.0.1:33261 **** v1 vsl| 0 Debug - sockopt: Setting SO_KEEPALIVE for a0=127.0.0.1:33261 **** v1 vsl| 0 Debug - sockopt: Setting SO_SNDTIMEO for a0=127.0.0.1:33261 **** v1 vsl| 0 Debug - sockopt: Setting SO_RCVTIMEO for a0=127.0.0.1:33261 **** v1 vsl| 0 Debug - sockopt: Setting TCP_NODELAY for a0=127.0.0.1:33261 **** v1 vsl| 0 Debug - sockopt: Setting TCP_KEEPIDLE for a0=127.0.0.1:33261 **** v1 vsl| 0 Debug - sockopt: Setting TCP_KEEPCNT for a0=127.0.0.1:33261 **** v1 vsl| 0 Debug - sockopt: Setting TCP_KEEPINTVL for a0=127.0.0.1:33261 **** v1 vsl| 0 CLI - Wr 200 0 **** dT 2.508 *** v1 CLI RX 200 **** v1 CLI RX|a0 127.0.0.1 33261 **** v1 CLI TX|debug.xid 1000 **** dT 2.570 *** v1 CLI RX 200 **** v1 CLI RX|XID is 1000 chunk 1 **** v1 CLI TX|debug.listen_address **** dT 2.599 **** v1 vsl| 0 CLI - Rd debug.listen_address **** v1 vsl| 0 CLI - Wr 200 19 a0 127.0.0.1 33261 **** v1 vsl| 0 CLI - Rd debug.xid 1000 **** v1 vsl| 0 CLI - Wr 200 19 XID is 1000 chunk 1 **** dT 2.639 *** v1 CLI RX 200 **** v1 CLI RX|a0 127.0.0.1 33261 ** v1 Listen on 127.0.0.1 33261 **** v1 macro def v1_addr=127.0.0.1 **** v1 macro def v1_port=33261 **** v1 macro def v1_sock=127.0.0.1:33261 **** v1 macro def v1_a0_addr=127.0.0.1 **** v1 macro def v1_a0_port=33261 **** v1 macro def v1_a0_sock=127.0.0.1:33261 ** top === varnish v1 -cliok "param.set first_byte_timeout 0.5" **** v1 CLI TX|param.set first_byte_timeout 0.5 **** dT 2.691 *** v1 CLI RX 200 ** v1 CLI 200 ** top === client c1 { ** c1 Starting client ** c1 Waiting for client **** dT 2.695 ** c1 Started on 127.0.0.1:33261 (1 iterations) *** c1 Connect to 127.0.0.1:33261 *** c1 connected fd 19 from 127.0.0.1 43118 to 127.0.0.1:33261 ** c1 === txreq -url "from_backend" **** c1 txreq|GET from_backend HTTP/1.1\r **** c1 txreq|Host: 127.0.0.1\r **** c1 txreq|User-Agent: c1\r **** c1 txreq|\r ** c1 === rxresp **** dT 2.702 **** v1 vsl| 0 CLI - Rd debug.listen_address **** v1 vsl| 0 CLI - Wr 200 19 a0 127.0.0.1 33261 **** v1 vsl| 1000 Begin c sess 0 HTTP/1 **** v1 vsl| 1000 SessOpen c 127.0.0.1 43118 a0 127.0.0.1 33261 1732667881.865303 22 **** v1 vsl| 1000 Debug c sockopt: SO_LINGER may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Debug c sockopt: SO_KEEPALIVE may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Debug c sockopt: SO_SNDTIMEO may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Debug c sockopt: SO_RCVTIMEO may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Debug c sockopt: TCP_NODELAY may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Debug c sockopt: TCP_KEEPIDLE may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Debug c sockopt: TCP_KEEPCNT may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Debug c sockopt: TCP_KEEPINTVL may be inherited for a0=127.0.0.1:33261 **** v1 vsl| 1000 Link c req 1001 rxreq **** dT 4.118 *** s1 accepted fd 6 127.0.0.1 33278 ** s1 === rxreq **** s1 rxhdr|GET from_backend HTTP/1.1\r **** s1 rxhdr|Host: 127.0.0.1\r **** s1 rxhdr|User-Agent: c1\r **** s1 rxhdr|X-Forwarded-For: 127.0.0.1\r **** s1 rxhdr|Via: 1.1 v1 (Varnish/trunk)\r **** s1 rxhdr|X-Varnish: 1002\r **** s1 rxhdr|\r **** s1 rxhdrlen = 136 **** s1 http[ 0] |GET **** s1 http[ 1] |from_backend **** s1 http[ 2] |HTTP/1.1 **** s1 http[ 3] |Host: 127.0.0.1 **** s1 http[ 4] |User-Agent: c1 **** s1 http[ 5] |X-Forwarded-For: 127.0.0.1 **** s1 http[ 6] |Via: 1.1 v1 (Varnish/trunk) **** s1 http[ 7] |X-Varnish: 1002 **** s1 bodylen = 0 ** s1 === expect req.url == "from_backend" **** s1 EXPECT req.url (from_backend) == "from_backend" match ** s1 === delay 1 *** s1 delaying 1 second(s) **** dT 4.702 **** c1 rxhdr|HTTP/1.1 503 Backend fetch failed\r **** c1 rxhdr|Date: Wed, 27 Nov 2024 00:38:03 GMT\r **** c1 rxhdr|Server: Varnish\r **** c1 rxhdr|Content-Type: text/html; charset=utf-8\r **** c1 rxhdr|Retry-After: 5\r **** c1 rxhdr|X-Varnish: 1001\r **** c1 rxhdr|Age: 0\r **** c1 rxhdr|Via: 1.1 v1 (Varnish/trunk)\r **** c1 rxhdr|Content-Length: 281\r **** c1 rxhdr|Connection: keep-alive\r **** c1 rxhdr|\r **** c1 rxhdrlen = 246 **** c1 http[ 0] |HTTP/1.1 **** c1 http[ 1] |503 **** c1 http[ 2] |Backend fetch failed **** c1 http[ 3] |Date: Wed, 27 Nov 2024 00:38:03 GMT **** c1 http[ 4] |Server: Varnish **** c1 http[ 5] |Content-Type: text/html; charset=utf-8 **** c1 http[ 6] |Retry-After: 5 **** c1 http[ 7] |X-Varnish: 1001 **** c1 http[ 8] |Age: 0 **** c1 http[ 9] |Via: 1.1 v1 (Varnish/trunk) **** c1 http[10] |Content-Length: 281 **** c1 http[11] |Connection: keep-alive **** c1 c-l| **** c1 c-l| **** c1 c-l| **** c1 c-l| 503 Backend fetch failed **** c1 c-l| **** c1 c-l| **** c1 c-l|

Error 503 Backend fetch failed

**** c1 c-l|

Backend fetch failed

**** c1 c-l|

Guru Meditation:

**** c1 c-l|

XID: 1002

**** c1 c-l|
**** c1 c-l|

Varnish cache server

**** c1 c-l| **** c1 c-l| **** c1 bodylen = 281 ** c1 === expect resp.status == 200 ---- c1 EXPECT resp.status (503) == "200" failed **** dT 4.708 * top RESETTING after ../../../../bin/varnishtest/tests/b00026.vtc ** s1 Waiting for server (4/-1) **** dT 4.718 ** s2 Waiting for server (5/-1) ** v1 Wait **** v1 CLI TX|panic.show **** dT 4.735 **** v1 vsl| 1002 Begin b bereq 1001 pass **** v1 vsl| 1002 VCL_use b vcl1 **** v1 vsl| 1002 Timestamp b Start: 1732667881.865441 0.000000 0.000000 **** v1 vsl| 1002 BereqMethod b GET **** v1 vsl| 1002 BereqURL b from_backend **** v1 vsl| 1002 BereqProtocol b HTTP/1.1 **** v1 vsl| 1002 BereqHeader b Host: 127.0.0.1 **** v1 vsl| 1002 BereqHeader b User-Agent: c1 **** v1 vsl| 1002 BereqHeader b X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1002 BereqHeader b Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1002 BereqHeader b X-Varnish: 1002 **** v1 vsl| 1002 VCL_call b BACKEND_FETCH **** v1 vsl| 1002 VCL_return b fetch **** v1 vsl| 1002 Timestamp b Fetch: 1732667881.865458 0.000017 0.000017 **** v1 vsl| 1002 Timestamp b Connected: 1732667881.865504 0.000062 0.000045 **** v1 vsl| 1002 BackendOpen b 25 b1 127.0.0.1 41599 127.0.0.1 33278 connect **** v1 vsl| 1002 Timestamp b Bereq: 1732667881.865529 0.000088 0.000025 **** v1 vsl| 1002 FetchError b first byte timeout **** v1 vsl| 1002 BackendClose b 25 b1 close RX_TIMEOUT **** v1 vsl| 1002 Timestamp b Beresp: 1732667883.867336 2.001894 2.001806 **** v1 vsl| 1002 Timestamp b Error: 1732667883.867344 2.001903 0.000008 **** v1 vsl| 1002 BerespProtocol b HTTP/1.1 **** v1 vsl| 1002 BerespStatus b 503 **** v1 vsl| 1002 BerespReason b Backend fetch failed **** v1 vsl| 1002 BerespHeader b Date: Wed, 27 Nov 2024 00:38:03 GMT **** v1 vsl| 1002 BerespHeader b Server: Varnish **** v1 vsl| 1002 VCL_call b BACKEND_ERROR **** v1 vsl| 1002 BerespHeader b Content-Type: text/html; charset=utf-8 **** v1 vsl| 1002 BerespHeader b Retry-After: 5 **** v1 vsl| 1002 VCL_return b deliver **** v1 vsl| 1002 Storage b malloc Transient **** v1 vsl| 1002 Length b 281 **** v1 vsl| 1002 BereqAcct b 136 0 136 0 0 0 **** v1 vsl| 1002 End b **** v1 vsl| 1001 Begin c req 1000 rxreq **** v1 vsl| 1001 Timestamp c Start: 1732667881.865352 0.000000 0.000000 **** v1 vsl| 1001 Timestamp c Req: 1732667881.865352 0.000000 0.000000 **** v1 vsl| 1001 VCL_use c vcl1 **** v1 vsl| 1001 ReqStart c 127.0.0.1 43118 a0 **** v1 vsl| 1001 ReqMethod c GET **** v1 vsl| 1001 ReqURL c from_backend **** v1 vsl| 1001 ReqProtocol c HTTP/1.1 **** v1 vsl| 1001 ReqHeader c Host: 127.0.0.1 **** v1 vsl| 1001 ReqHeader c User-Agent: c1 **** v1 vsl| 1001 ReqHeader c X-Forwarded-For: 127.0.0.1 **** v1 vsl| 1001 ReqHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1001 VCL_call c RECV **** v1 vsl| 1001 VCL_return c pass **** v1 vsl| 1001 VCL_call c HASH **** v1 vsl| 1001 VCL_return c lookup **** v1 vsl| 1001 VCL_call c PASS **** v1 vsl| 1001 VCL_return c fetch **** v1 vsl| 1001 Link c bereq 1002 pass **** v1 vsl| 1001 Timestamp c Fetch: 1732667883.870694 2.005341 2.005341 **** v1 vsl| 1001 RespProtocol c HTTP/1.1 **** v1 vsl| 1001 RespStatus c 503 **** v1 vsl| 1001 RespReason c Backend fetch failed **** v1 vsl| 1001 RespHeader c Date: Wed, 27 Nov 2024 00:38:03 GMT **** v1 vsl| 1001 RespHeader c Server: Varnish **** v1 vsl| 1001 RespHeader c Content-Type: text/html; charset=utf-8 **** v1 vsl| 1001 RespHeader c Retry-After: 5 **** v1 vsl| 1001 RespHeader c X-Varnish: 1001 **** v1 vsl| 1001 RespHeader c Age: 0 **** v1 vsl| 1001 RespHeader c Via: 1.1 v1 (Varnish/trunk) **** v1 vsl| 1001 VCL_call c DELIVER **** v1 vsl| 1001 VCL_return c deliver **** v1 vsl| 1001 Timestamp c Process: 1732667883.870740 2.005387 0.000046 **** v1 vsl| 1001 Filters c **** v1 vsl| 1001 RespHeader c Content-Length: 281 **** v1 vsl| 1001 RespHeader c Connection: keep-alive **** v1 vsl| 1001 Timestamp c Resp: 1732667883.870799 2.005446 0.000058 **** v1 vsl| 1001 ReqAcct c 62 0 62 246 281 527 **** v1 vsl| 1001 End c **** dT 4.780 *** v1 CLI RX 300 **** v1 CLI RX|Child has not panicked or panic has been cleared **** dT 4.785 *** v1 debug|Info: manager stopping child *** v1 debug|Debug: Stopping Child **** dT 4.836 **** v1 vsl| 0 CLI - EOF on CLI connection, worker stops **** dT 4.883 *** v1 debug|Info: Child (3806538) said Child dies *** v1 debug|Info: Child (3806538) ended *** v1 debug|Debug: Child cleanup complete *** v1 debug|Info: manager dies **** v1 STDOUT EOF **** dT 4.940 ** v1 WAIT4 pid=3806525 status=0x0000 (user 0.246956 sys 0.123259) * top TEST ../../../../bin/varnishtest/tests/b00026.vtc FAILED # top TEST ../../../../bin/varnishtest/tests/b00026.vtc FAILED (4.945) exit=2 FAIL tests/b00026.vtc (exit status: 2)